package polymorphicTask.Pizza;

public abstract class Pizza {
    //属性：名称、价格、大小,方法：展示
    private String name;
    private int price;
    private String size;

    public Pizza(){}


    public Pizza(String name,int price,String size){
        this.name=name;
        this.price=price;
        this.size=size;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public abstract void show();

}
